<script language="javascript">
var validate = 0;
function checkValidate() {
	document.getElementById('valcode').onkeyup = function(e) {
		e = window.event || e;
		var currKey = e.keyCode || e.which;
		var value = document.getElementById('valcode').value;
		if(value.length == 4) {
			if((currKey >= 48 && currKey <= 57) || (currKey >= 65 && currKey <=90) || (currKey >= 96 && currKey <= 105)) {} else {return;}
			validate = 2;
			document.getElementById('validate_info').innerHTML = '<img src="<?php echo $this->config->item('static_url'); ?>css/images/loading.gif" > 正在检测验证码！';
			document.getElementById('validate_info').style.display = '';
			var strURL = '<?php echo $this->config->base_url(); ?>manager/checkvalidate?validate=' + value;
			var result = '';
			var val = 'validate=' + value;
		
			var xmlHttp = getXMLHttpRequest();
			xmlHttp.open('GET', strURL, true);
			xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			xmlHttp.onreadystatechange = function(){
				if (xmlHttp.readyState == 4){
					result = xmlHttp.responseText;
					if(result == '1') {
						document.getElementById('validate_info').innerHTML = '验证码超时，请更换注册码！';
						document.getElementById('validate_info').style.display = '';
						validate = 0;
					} else if(result == '2') {
						document.getElementById('validate_info').innerHTML = '验证码错误！';
						document.getElementById('validate_info').style.display = '';
						validate = 0;
					} else {
						document.getElementById('validate_info').style.display = 'none';
						validate = 1;
					}
				}
			}
			xmlHttp.send(val);
			return;
		}
	}
}
</script>
<link media="screen" type="text/css" href="<?php echo $this->config->item('static_url'); ?>css/manager/footer.css" rev="stylesheet" rel="stylesheet">
<div>
	<div class="footer">
		<ul>
			<li>5dwww.com我的万维网版权所有 2011-2012</li>
			<li><a>服务条款</a></li>
			<li class="no_border"><a>联系我们</a></li>
  		</ul>
	</div>
	<div>
    </div>
</div>